#include"Sort.h"

void Inser()
{
	int a[] = { 5, 9, 4, 6, 3, 7, 1, 8, 2, 0 };
	Print(a, sizeof(a) / sizeof(int));

	InserSort(a, sizeof(a) / sizeof(int));

	Print(a, sizeof(a) / sizeof(int));

	printf("\n");
}

void Bubble()
{
	int a[] = { 5, 9, 4, 6, 3, 7, 1, 8, 2, 0 };
	Print(a, sizeof(a) / sizeof(int));

	BubbleSort(a, sizeof(a) / sizeof(int));

	Print(a, sizeof(a) / sizeof(int));

	printf("\n");
}

void Shell()
{
	int a[] = { 5, 9, 4, 6, 3, 7, 1, 8, 2, 0 };
	Print(a, sizeof(a) / sizeof(int));

	ShellSort(a, sizeof(a) / sizeof(int));

	Print(a, sizeof(a) / sizeof(int));

	printf("\n");
}

void Heap()
{
	int a[] = { 5, 9, 4, 6, 3, 7, 1, 8, 2, 0 };
	Print(a, sizeof(a) / sizeof(int));

	HeapSort(a, sizeof(a) / sizeof(int));

	Print(a, sizeof(a) / sizeof(int));

	printf("\n");
}

int main()
{
	Inser();
	Bubble();
	Shell();
	Heap();
	
	return 0;
}